Method LockForUpdateRequiredAsync(long[], CancellationToken)
Strict form of for CAS patterns (lock -> re-read -> save):
every requested id must exist. Throws
naming the missing ids, and refuses with to run
outside an active transaction, where a "lock" would guarantee nothing.
public Task LockForUpdateRequiredAsync(long[] objectIds, CancellationToken cancellationToken)
Remarks
Paired overload: params is incompatible with a trailing token (B1 amendment).